package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class ShirotextApplication {

	@Value("${my.name}")
	private String name;

	public static void main(String[] args) {
		SpringApplication.run(ShirotextApplication.class, args);
//		logger.info("GunsApplication is success!");
	}

	@GetMapping("/hi")
	public String hi(){
		System.out.print(name+"123");
		return "测试;";
	}

}
